// 获取容器信息
export const getViewInfo = (selector) => {
  return new Promise((resolve, reject) => {
    try {
      wx.createSelectorQuery().select(selector).boundingClientRect().exec((res) => {
        resolve(res)
      })
    } catch (error) {
      reject(error)
    }
  })
}